﻿using Newtonsoft.Json;

namespace Project.Core.Config.Config.Cache {
    public class RedisConfigInfo {
        /// <summary>
        /// 连接字符串
        /// </summary>
        public string Connection { get; set; }

        /// <summary>
        /// 实例名称
        /// </summary>
        public string InstanceName { get; set; }

        /// <summary>
        /// 数据库编号
        /// </summary>
        public int Database { get; set; }

        public override string ToString() {
            return JsonConvert.SerializeObject(this);
        }
    }
}
